<?php
namespace app\voip\validate;


use think\Validate;

class ExcelAuth extends Validate
{
    protected $rule = [
        'title'  =>  'require|max:120',
        'eid'=>'require|max:240',
        'id'=>'require|number|max:64',
        'remark'=>'require|max:120',
        'gid'=>'require|number|max:64',

    ];

    protected $message = [
        'title.require'       => '标题未写',
        'title.max'        => '标题过长!',
        'eid'=>'Excel 数据异常',
        'id'       => '数据异常',
        'remark.require'       => '备注未填写',
        'remark.max'        => '备注过长!',

    ];

    protected $scene = [
        'editData'  => ['title','id','remark','eid'],
        'addData'   => ['title','remark','eid'],
        'userAddData'   => ['gid','uid','remark'],
        'userEditData'   => ['gid','uid','remark'],
    ];
}